﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Teach.TSearch" %>
<script>
var SortBy="<%=SortBy %>";
</script>
<asp:Literal ID="litCount" Text="15" runat="server" Visible="false"/>
<div class="common">
	<div class="submenunew">
		<div class="submenu_l">
				<div class="unsub">
					<div class="unsubsel"><a href="/teaching/"><span><strong><%=GetText("M0036")%></strong></span></a></div>
					<div><img src="/Images/submenu_arrow.gif" /></div>
				</div>
				<div class="unsub">
					<div class="unsubsel"><a href="/course/"><span><%=GetText("M0037")%></span></a></div><div><img src="/Images/submenu_arrownone.gif" /></div>
				</div>
				<%if (!((Lx.Web.Common.UI.TDTPageBase)Page).IsTeacher){%>
				<div class="unsub">
					<div class="unsubsel"><%if (((Lx.Web.Common.UI.TDTPageBase)Page).IsAffirm){%><a href="/teach/join.htm"><%}else{ %><a href="#" onclick="NotAffirm()"><%} %><span><%=GetText("TP100")%></span></a></div>
					<div><img src="/Images/submenu_arrownone.gif" /></div>
				</div>
				<%} %>
				<div class="cleartm"></div>
		</div>
		<div class="submenu_r"><input id="textSear2" type="text" class="common_search"  value="<%=Name_F %>"/><a href="#" id="bttSear2" class="buttonimg"  onclick="SearchDocs()"><img src="/Images/icon_search19.gif" border="0" class="img" /></a></div>
		<div class="cleartm"></div>
	</div>
</div>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
<!---->
				<div class="submenuN">
					<div class="submenuN_position">
						<div class="submenuN_title">
							<div class="submenuN_Btitle">
								<h1><%=GetText("TP032")%></h1>
							</div>
							<div class="teachers_fliter">
								<table width="100%" border="0" cellspacing="1" cellpadding="5">
									<tr>
									    <td valign="top"><strong><%=GetText("TP246")%> </strong>
									      <input id="chbTeach" type="checkbox" <%=(TType=="1"||TType=="3")?"checked='checked'":"" %> /> <label for="chbTeach"><strong><%=GetText("TP003")%></strong></label> <img src="/Images/icon_help.gif" align="absmiddle" />&nbsp;&nbsp;&nbsp;&nbsp;<input id="chbTutor" type="checkbox" <%=(TType=="2"||TType=="3")?"checked='checked'":"" %> /> <label for="chbTutor"><strong><%=GetText("TP004")%></strong></label> <img src="/Images/icon_help.gif" align="absmiddle" />
										  <hr color="#eeeeee" />
											<table border="0" cellspacing="1" cellpadding="0">
												<tr>
													<td><%=C0118%><br /><select id="selTeachL" class="common180"> <option value=""><%=GetText("C0027")%></option> <%=GetLanguageSelect(TL)%> </select></td>
													<td><span class="grey12">&nbsp;<%=GetText("TP064")%></span><br />&nbsp;<select id="selSpeakL" class="common180"> <option value=""><%=GetText("C0027")%></option> <%=GetLanguageSelect(BL)%> </select></td>
													<td><span class="grey12">&nbsp;<%=C0003%></span><br />&nbsp;<select id="selCountry" class="common130"> <option value=""><%=GetText("C0029")%></option>  <%=GetCountrySelect(Nationality)%> </select></td>
													<td><span class="grey12">&nbsp;<%=GetText("TP008")%> (<%=GetText("TP016")%>)</span><br />&nbsp;<select class="common130" id="selPrice"> 
											        <option value="0-999999" <%=(MinPrice=="0"&&IsFree!="1")?"selected='selected'":"" %>>All</option>
											        <option value="1" <%=(IsFree=="1"?"selected='selected'":"")%>>Free</option>
											        <option value="1-50" <%=MinPrice=="1"?"selected='selected'":"" %>>1-50</option>
											        <option value="51-100" <%=MinPrice=="51"?"selected='selected'":"" %>>51-100</option>
											        <option value="101-150" <%=MinPrice=="101"?"selected='selected'":"" %>>101-150</option>
											        <option value="151-200" <%=MinPrice=="151"?"selected='selected'":"" %>>151-200</option>
											        <option value="201-300" <%=MinPrice=="201"?"selected='selected'":"" %>>201-300</option>
											        <option value="300-999999" <%=MinPrice=="300"?"selected='selected'":"" %>>300+</option>
											        </select>
													<%--<span class="grey12">&nbsp;<%=GetText("TP065")%></span><br />&nbsp;<input id="MinPrice" type="text" size="4" value="<%=MinPrice%>"/> <%=GetText("TP024")%> <input id="MaxPrice" type="text" size="4" value="<%=MaxPrice%>"/>--%></td>
												</tr>
											</table>
										</td>
									</tr>
									<tr>
										<td valign="top"><div class="floatl"><a href="#" id="bttSear" name="bttSear_name" onclick="SearBrowseDocs()" class="specbtn"><span>&nbsp;&nbsp;&nbsp;<%=GetText("C0068")%>&nbsp;&nbsp;&nbsp;</span></a></div><div class="floatl">&nbsp;&nbsp;&nbsp;&nbsp;<input id="IsNativeBLID" type="checkbox" <%=(IsNativeBL=="1"?"checked='checked'":"")%> /> <label for="IsNativeBLID"><%=GetText("CT091")%></label>&nbsp;&nbsp;&nbsp;&nbsp;<input id="IsFreeID" type="checkbox" <%=(IsFree=="1"?"checked='checked'":"")%>/> <label for="IsFreeID"><%=GetText("TP009")%></label></div><div class="clear"></div></td>
									</tr>
								</table>
							</div>
							<div class="submenuN_button"></div>
						</div>
					</div>
				</div>
<!---->
<!---->
				<div class="Center9001n">
					<div class="center9001right">
						<div class="Center9001Content">
							<div class="teach_area">
								<div class="spectitle2">
										<div class="floatl"><%=RowIndexText(PageIndex,psize,rptUserList.Items.Count,RecordCount,"TP401")%></div>
										<div class="floatr"> 
										<ul class="sortby">
												<li class="sort"><%=GetText("C2017")%>:</li>
										<%if (Name_F=="") {%>
											<%if(SortBy=="1") {%>
												<li><strong><%=GetText("TP130")%></strong></li>
												<li><a href="<%=WWWHost %>/teacher/1-<%=TType %>-<%=TL %>-<%=BL %>-<%=Nationality %>-<%=MinPrice %>-<%=MaxPrice %>-<%=IsFree %>-<%=IsNativeBL %>-2.htm"><%=GetText("TP131")%></a></li>
												<li><a href="<%=WWWHost %>/teacher/1-<%=TType %>-<%=TL %>-<%=BL %>-<%=Nationality %>-<%=MinPrice %>-<%=MaxPrice %>-<%=IsFree %>-<%=IsNativeBL %>-3.htm"><%=GetText("TP132")%></a></li>
												<li class="last"><a href="<%=WWWHost %>/teacher/1-<%=TType %>-<%=TL %>-<%=BL %>-<%=Nationality %>-<%=MinPrice %>-<%=MaxPrice %>-<%=IsFree %>-<%=IsNativeBL %>-4.htm"><%=GetText("TP133")%></a></li>
											<%} else if(SortBy=="2") {%>
												<li><a href="<%=WWWHost %>/teacher/1-<%=TType %>-<%=TL %>-<%=BL %>-<%=Nationality %>-<%=MinPrice %>-<%=MaxPrice %>-<%=IsFree %>-<%=IsNativeBL %>-1.htm"><%=GetText("TP130")%></a></li>
												<li><strong><%=GetText("TP131")%></strong></li>
												<li><a href="<%=WWWHost %>/teacher/1-<%=TType %>-<%=TL %>-<%=BL %>-<%=Nationality %>-<%=MinPrice %>-<%=MaxPrice %>-<%=IsFree %>-<%=IsNativeBL %>-3.htm"><%=GetText("TP132")%></a></li>
												<li class="last"><a href="<%=WWWHost %>/teacher/1-<%=TType %>-<%=TL %>-<%=BL %>-<%=Nationality %>-<%=MinPrice %>-<%=MaxPrice %>-<%=IsFree %>-<%=IsNativeBL %>-4.htm"><%=GetText("TP133")%></a></li>				                    
											<%} else if(SortBy=="3"){%>
												<li><a href="<%=WWWHost %>/teacher/1-<%=TType %>-<%=TL %>-<%=BL %>-<%=Nationality %>-<%=MinPrice %>-<%=MaxPrice %>-<%=IsFree %>-<%=IsNativeBL %>-1.htm"><%=GetText("TP130")%></a></li>
												<li><a href="<%=WWWHost %>/teacher/1-<%=TType %>-<%=TL %>-<%=BL %>-<%=Nationality %>-<%=MinPrice %>-<%=MaxPrice %>-<%=IsFree %>-<%=IsNativeBL %>-2.htm"><%=GetText("TP131")%></a></li>
												<li><strong><%=GetText("TP132")%></strong></li>
												<li class="last"><a href="<%=WWWHost %>/teacher/1-<%=TType %>-<%=TL %>-<%=BL %>-<%=Nationality %>-<%=MinPrice %>-<%=MaxPrice %>-<%=IsFree %>-<%=IsNativeBL %>-4.htm"><%=GetText("TP133")%></a></li>
											<%} else{%>
												<li><a href="<%=WWWHost %>/teacher/1-<%=TType %>-<%=TL %>-<%=BL %>-<%=Nationality %>-<%=MinPrice %>-<%=MaxPrice %>-<%=IsFree %>-<%=IsNativeBL %>-1.htm"><%=GetText("TP130")%></a></li>
												<li><a href="<%=WWWHost %>/teacher/1-<%=TType %>-<%=TL %>-<%=BL %>-<%=Nationality %>-<%=MinPrice %>-<%=MaxPrice %>-<%=IsFree %>-<%=IsNativeBL %>-2.htm"><%=GetText("TP131")%></a></li>
												<li><a href="<%=WWWHost %>/teacher/1-<%=TType %>-<%=TL %>-<%=BL %>-<%=Nationality %>-<%=MinPrice %>-<%=MaxPrice %>-<%=IsFree %>-<%=IsNativeBL %>-3.htm"><%=GetText("TP132")%></a></li>
												<li class="last"><strong><%=GetText("TP133")%></strong></li>
											<%} %>
										<%} else{%>
											<%if(SortBy=="1") {%>
												<li><strong><%=GetText("TP130")%></strong></li>
												<li><a href="<%=WWWHost %>/teacher/search.htm?sort=2&name=<%=Name_F %>"><%=GetText("TP131")%></a></li>
												<li><a href="<%=WWWHost %>/teacher/search.htm?sort=3&name=<%=Name_F %>"><%=GetText("TP132")%></a></li>
												<li class="last"><a href="<%=WWWHost %>/teacher/search.htm?sort=4&name=<%=Name_F %>"><%=GetText("TP133")%></a></li>
											<%} else if(SortBy=="2") {%>
												<li><a href="<%=WWWHost %>/teacher/search.htm?sort=1&name=<%=Name_F %>"><%=GetText("TP130")%></a></li>
												<li><strong><%=GetText("TP131")%></strong></li>
												<li><a href="<%=WWWHost %>/teacher/search.htm?sort=3&name=<%=Name_F %>"><%=GetText("TP132")%></a></li>
												<li class="last"><a href="<%=WWWHost %>/teacher/search.htm?sort=4&name=<%=Name_F %>"><%=GetText("TP133")%></a></li>
											<%} else if(SortBy=="3"){%>
												<li><a href="<%=WWWHost %>/teacher/search.htm?sort=1&name=<%=Name_F %>"><%=GetText("TP130")%></a></li>
												<li><a href="<%=WWWHost %>/teacher/search.htm?sort=2&name=<%=Name_F %>"><%=GetText("TP131")%></a></li>
												<li><strong><%=GetText("TP132")%></strong></li>
												<li class="last"><a href="<%=WWWHost %>/teacher/search.htm?sort=4&name=<%=Name_F %>"><%=GetText("TP133")%></a></li>
											<%} else{%>
												<li><a href="<%=WWWHost %>/teacher/search.htm?sort=1&name=<%=Name_F %>"><%=GetText("TP130")%></a></li>
												<li><a href="<%=WWWHost %>/teacher/search.htm?sort=2&name=<%=Name_F %>"><%=GetText("TP131")%></a></li>
												<li><a href="<%=WWWHost %>/teacher/search.htm?sort=3&name=<%=Name_F %>"><%=GetText("TP132")%></a></li>
												<li class="last"><strong><%=GetText("TP133")%></strong></li>
											<%} %>
										<%} %></ul></div>
										<div class="clear"></div>
								</div>
								<!--Search result-->
								<div id="memberList" class="content628 ">
									<asp:Repeater ID="rptUserList" runat="server">
										<ItemTemplate>
											<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:30px;overflow:hidden">
											<tr>
												<td width="110" valign="top"><div class="Pic90" style="position:relative; height:94px"><a class=' <%#Eval("TeacherType").ToString()=="1"? "Photo_90" : "Photo_90u" %>' href="/<%#Eval("MemberNo") %>T.htm"><%#Eval("Avatar").ToString() == "" ? "<img src=\"/Images/No_pic.gif\" alt='' />" : Eval("Avatar", "<img src=\"{0}\" />").ToString()%></a></div></td>
												<td width="12" valign="top" style="padding-top:5px"><img src='<%#(bool)Eval("Online") == true?"/Images/Online.gif":"/Images/Offline.gif" %>' title='<%#(bool)Eval("Online") == true?GetText("C0038"):GetText("C0039") %>' /></td>
												<td width="400" valign="top"><span class="text14"><a href="/<%#Eval("MemberNo") %>T.htm"><%#Eval("NickName") %></a></span>&nbsp;&nbsp;<%=C0003%> <%#GetCountryText(Eval("Nationality").ToString())%>
												<p><%=C0118%>: <strong><%#Eval("TLang1").ToString()==""?"":BLF.StaticData.GetLanguageText(Eval("TLang1").ToString())%><%#Eval("TLang2").ToString()==""?"":", "+BLF.StaticData.GetLanguageText(Eval("TLang2").ToString())%><%#Eval("TLang3").ToString() == "" ? "" :", "+BLF.StaticData.GetLanguageText(Eval("TLang3").ToString())%><%#Eval("TLang4").ToString() == "" ? "" :", "+BLF.StaticData.GetLanguageText(Eval("TLang4").ToString())%></strong></p>
												<p class="grey12"><%=C0005%>: <%#BLF.StaticData.GetLanguageText(Eval("MotherTongue").ToString())%><%#(Eval("MotherTongue2").ToString().Trim()=="")?"":", "+(BLF.StaticData.GetLanguageText(Eval("MotherTongue2").ToString()))%><%#(Eval("MotherTongue3").ToString().Trim() == "") ? "" :", "+(BLF.StaticData.GetLanguageText(Eval("MotherTongue3").ToString()) )%><%#(Eval("MotherTongue4").ToString().Trim() == "") ? "" :", "+(BLF.StaticData.GetLanguageText(Eval("MotherTongue4").ToString()) )%></p>
												<%#Eval("TeacherType").ToString()=="1"? "<span class='status_TEdisplay'>"+GetText("C0116") : "<span class='status_TUdisplay'>"+GetText("C0120") %></span></td>
												<td valign="top" align="center"><p class="price"><span class="hourly"><%=GetText("TP065")%></span><br /><span class="price_num"><%#((decimal)Eval("Price")).ToString("N0") %></span> ITC</p><p><%#(int)Eval("Sessions") > 0 ? "<img src='/images/fbapp_level_" + ((decimal)Eval("StarRate")).ToString("N0") + ".gif' align='absmiddle'  title='Rating: " + ((decimal)Eval("StarRate")).ToString("N1") + "'/></p><p class='grey12'>" + GetText("Sessions:") + Eval("Sessions") : ""%></p></td>
											</tr>
											</table>
										</ItemTemplate>
									</asp:Repeater> 
									<%if(rptUserList.Items.Count==0){ %>没有找到你要的数据<%} %>     
								</div>
								<div class="clear"></div>
								<div id="divPage" class="page_num">							
									<%=string.IsNullOrEmpty(Name_F)?CreatePageNav(RecordCount, psize, PageIndex, "",
										string.Format("<span class='page_none grey10'><a href='{0}/teacher/$I$-{1}-{2}-{3}-{4}-{5}-{6}-{7}-{8}-{9}.htm'>{10}</a></span>&nbsp;", WWWHost,TType,TL,BL,Nationality,MinPrice,MaxPrice,IsFree,IsNativeBL,SortBy,HttpUtility.UrlEncode(GetText("..."))),
										"",
										string.Format("<span class='page_none grey10'><a href='{0}/teacher/$I$-{1}-{2}-{3}-{4}-{5}-{6}-{7}-{8}-{9}.htm'>{10}</a></span>&nbsp;", WWWHost,TType,TL,BL,Nationality,MinPrice,MaxPrice,IsFree,IsNativeBL,SortBy,HttpUtility.UrlEncode(GetText("..."))),
										string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
										string.Format("<span class='page_none grey10'><a href='{0}/teacher/$I$-{1}-{2}-{3}-{4}-{5}-{6}-{7}-{8}-{9}.htm'>$I$</a></span>&nbsp;",WWWHost,TType,TL,BL,Nationality,MinPrice,MaxPrice,IsFree,IsNativeBL,SortBy)
										):
										CreatePageNav(RecordCount, psize, PageIndex, "",
										string.Format("<span class='page_none grey10'><a href='{0}/teacher/search.htm?p=$I$&sort={1}&name={2}'>{3}</a></span>&nbsp;", WWWHost,SortBy,Name_F,HttpUtility.UrlEncode(GetText("Prev"))),
										"",
										string.Format("<span class='page_none grey10'><a href='{0}/teacher/search.htm?p=$I$&sort={1}&name={2}'>{3}</a></span>&nbsp;", WWWHost,SortBy,Name_F,HttpUtility.UrlEncode(GetText("Next"))),
										string.Format("<span class='page_select'>{0}</span>&nbsp;", PageIndex),
										string.Format("<span class='page_none grey10'><a href='{0}/teacher/search.htm?p=$I$&sort={1}&name={2}'>$I$</a></span>&nbsp;",WWWHost,SortBy,Name_F)
										)
									%>
								</div>
							</div>
						</div>
					</div>					
					<div class="center9001left">
						<div id="ad_site" class="margin20T">
						<script type="text/javascript">
						  GA_googleFillSlot("all_pages_right160x600");
						</script>
						</div>
					</div>
					<div class="clear"></div>
					<div class="teach_area">
						<div class="copyright margin20D"><%=GetText("C2014")%>: 
							<asp:Repeater ID="rptPopular" runat="server">
								<ItemTemplate>										
									<a href='<%=WWWHost %>/teacher/teach-<%#Eval("LanguageValue")%>.htm'><%#string.Format("{0} teachers",Eval("LanguageText").ToString())%></a>&nbsp;&nbsp;
								</ItemTemplate>
							</asp:Repeater>
						<a href="/Teach/languages.htm"><%=GetText("All languages for language teachers") %></a>
						</div>
					</div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>